import request from '@/utils/request'

export default {
  // 条件分页课程查询方法
  getCourseList(page, limit, courseFrontVo) {
    return request({
      url: `/eduservice/coursefront/getFrontCourseList/${page}/${limit}`,
      method: 'post',
      data: courseFrontVo
    })
  },
  getAllSubject() {
    return request({
      url: `/eduservice/subject/getAllSubject`,
      method: 'get'
    })
  },
  getCourseInfo(id) {
    return request({
      url: `/eduservice/coursefront/getCourseInfo/${id}`,
      method: 'get'
    })
  }
}
